package by.grsu.crs.dao;

import java.sql.SQLException;
import java.util.List;

import by.grsu.crs.model.User;

public interface UserDao {

	public boolean addUser(User user) throws SQLException;

	public List<User> getAllUsers() throws SQLException;

	public User getUserById(int id) throws SQLException;

	public User getUserByEmail(String email) throws SQLException;
	
	public User getUserByEmailAndPassword(String email, String password) throws SQLException;

	public boolean deleteUserByID(int id) throws SQLException;

	public boolean updateUserById(int id, User user) throws SQLException;

}
